<?php

namespace Itwmw\Attributes\Validate\Exception;

use Itwmw\Validate\Exception\ValidateException;

class ValidateTypeException extends ValidateException
{
    public function __construct(
        public readonly string $requiredType,
        public readonly string $currentType,
        string $attribute,
    ) {
        parent::__construct("The type of the attribute is incorrect, required type: $requiredType, current type: $currentType", attribute: $attribute);
    }
}
